import { get, post, put, del } from '@/js/api/dataSource'
export default {
	station: {
		// 工位列表查询分页
		findAllStation () {
			return post({ url: '/archive/station/pageQuery', responseComplete: true })
		},
		// 启用停用工位
		updateEnables () {
			return put({ url: '/archive/station/updateEnable', responseComplete: true })
		},
		getNextCode () {
			return get({ url: '/archive/station/getNextCode' })
		},
		// 保存 新增修改
		saveOrUpdate () {
			return post({ url: '/archive/station/saveOrUpdate', responseComplete: true })
		},
		findStationDetailById () {
			return get({ url: '/archive/station/findDetailByParam' })
		},
		// 批量删除工位
		deleteStationMulity () {
			return del({ url: '/archive/station/batchDelete', responseComplete: true })
		},
		// 获得启用的工位信息 下拉列表
		findStationListAll () {
			return get({ url: '/archive/station/findStationListAll' })
		},
		// 获取工位类型下拉 只有已启用
		findStationTypeListAll () {
			return get({ url: '/archive/stationType/findCarRoomTypeListAll' })
		},
		// 包含停用
		findListAll () {
			return get({ url: '/archive/station/findListAll' })
		},
		// 获取工种
		findWorkKindListAll () {
			return get({ url: '/archive/workKind/findWorkKindListAll' })
		},
		findWorkLineList () {
			return get({ url: '/archive/productionLine/findProductionLineListAll' })
		},
		// 穿梭框数据
		findWorkKindAndTypeListAllByType () {
			return get({ url: '/archive/station/findWorkKindAndTypeListAllByType' })
		},
		// 复制 右侧工位列表
		copyGetAllStation () {
			return get({ url: '/archive/station/findCopyStationList' })
		},
		// 复制保存
		fromStationTocopyRelation () {
			return post({ url: '/archive/station/fromStationTocopyRelation', responseComplete: true })
		}
	}
}
